home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re FW_CString.8 < prev    next >
Encoding:
Internet Message Format  |  1996-08-22  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_CString
  2. Sent:        8/22/96 9:30 AM
  3. Received:    8/22/96 9:41 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >OK, this seems to be a way to get an object to draw in the highlight 
  9. >color, but for highlighting text I want to be smart about the highlight 
  10. >and I wnat to get the correct highlight background color, and the 
  11. >corresponding foreground color. For example, if the user has Green as the 
  12. >highlight color, that corresponds to green background with black text. If 
  13. >they have black as the highlight color that corresponds to black 
  14. >background with white text.
  15. >
  16. >Is there a way to get both the background and foreground colors correctly 
  17. >for my highlighted text object?
  18. >
  19. >-Scott Adler
  20.  
  21. What the highlight mode does on the mac is to swap pixels with the 
  22. background color with pixels of the highlight color. It's a swap. So if 
  23. your background color is white and your highlight color is blue then 
  24. white pixel will be blue and blue pixel will be white. The background 
  25. color in the ink is used to set the background color. In ODF 2 the ink's 
  26. foreground color (with FW_kHilite) or the system highlight color (with 
  27. FW_kSystemHilite) is used for the highlight color. That's all the 
  28. highlight mode does on the Mac.
  29.  
  30. ........................................................................
  31.  Henri Lamiraux                                      lamiraux@apple.com
  32.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  33. ........................................................................
  34.  
  35.  
  36.